Skip to content

Conversation

@steventux
Copy link

PII can leak into DfE analytics if present in the request query string, a common case is search parameters using personal details.

This PR adds the ability to enable web request event query filtering using the standard Rails parameter filter mechanism via the DfE::Analytics.filter_web_request_events configuration value.

See: DFE-Digital/access-your-teaching-qualifications@5941285 for a common workaround currently being used in services to mitigate this.

It would be preferable not to replicate this workaround on a per-service basis.

@steventux steventux force-pushed the web-request-query-filtering branch from 8b0ad22 to 9eabb6a Compare February 1, 2024 16:43
Adds a configurable web_request event query string filter via ActiveSupport::ParameterFilter mechanism.
@steventux steventux force-pushed the web-request-query-filtering branch from 9eabb6a to 23459aa Compare February 1, 2024 16:45
@steventux
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants